package com.gopay.common.cps.dao.wallet.tyy.impl;

import java.io.Serializable;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.gopay.common.base.dao.impl.BaseDAOImpl;
import com.gopay.common.cps.dao.wallet.tyy.WaTyyRebateDtlDao;
import com.gopay.common.domain.dps.WaTyyRebateDtl;
/**
 * 天溢盈分享返润明细信息
 * @author ZHOUPENG
 * @date   2017年4月14日 下午1:42:59
 */
@Repository("waTyyRebateDtlDao")
public class WaTyyRebateDtlDaoImpl extends BaseDAOImpl<WaTyyRebateDtl, Serializable> implements WaTyyRebateDtlDao {

    /**
     * 根据购买订单的国付宝订单号查询数据
     * @param isRegister
     * @return
     */
	@Override
    public List<WaTyyRebateDtl> findByPurchaseGopayOrderId(String purchaseGopayOrderId) {
        String hql = " from WaTyyRebateDtl where purchaseGopayOrderId = :purchaseGopayOrderId ";
        Map<String, Object> param = new HashMap<String, Object>();
        param.put("purchaseGopayOrderId", purchaseGopayOrderId);
        return findByHql(hql, param);
    }
}
